package cm.tl.pms.exception;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * // 需求  1000
 * //    project 2000开始
 * //实施 3000
 * //    验收 4000
 * //运维5000
 */
@Getter
@AllArgsConstructor(access = AccessLevel.PRIVATE)
public enum ExceptionEnum implements IError {
    SUCCESS("成功", 1),
    ERROR("失败", 0),

    PROJECT_NAME_EXIST("项目名称已经存在！", 2000);

    private final String message;
    private final Integer code;

    public String toString() {
        return "[code: " + code + ", message: " + message + "]";
    }
}
